package com.dhcc.bpm.modules.safe.service.impl;

import com.dhcc.bpm.modules.safe.entity.AccessControl;
import com.dhcc.bpm.modules.safe.vo.AccessControlVO;
import com.dhcc.bpm.modules.safe.mapper.AccessControlMapper;
import com.dhcc.bpm.modules.safe.service.IAccessControlService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * @ClassName AccessControlServiceImpl
 * @Description API访问控制表 服务实现类
 * @Author daina
 * @Date 2020/2/21 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Service("opc_access_control")
public class AccessControlServiceImpl extends BaseServiceImpl<AccessControlMapper, AccessControl> implements IAccessControlService {

	@Override
	public IPage<AccessControlVO> selectAccessControlPage(IPage<AccessControlVO> page, AccessControlVO accessControl) {
		return page.setRecords(baseMapper.selectAccessControlPage(page, accessControl));
	}
	@Override
	public int updateRefreshFlag(AccessControl accessControl) {
		return baseMapper.updateRefreshFlag(accessControl);
	}
}
